HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //var/www/html/orbi-individual/node_modules/next/dist/experimental/testmode/playwright/step.js
"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "step", {
    enumerable: true,
    get: function() {
        return step;
    }
});
const _test = require("@playwright/test");
function isWithRunAsStep(testInfo) {
    return "_runAsStep" in testInfo;
}
async function step(testInfo, props, handler) {
    if (isWithRunAsStep(testInfo)) {
        return testInfo._runAsStep(props, ({ complete })=>handler(complete));
    }
    // Fallback to the `test.step()`.
    let result;
    let reportedError;
    try {
        console.log(props.title, props);
        await _test.test.step(props.title, async ()=>{
            result = await handler(({ error })=>{
                reportedError = error;
                if (reportedError) {
                    throw reportedError;
                }
            });
        });
    } catch (error) {
        if (error !== reportedError) {
            throw error;
        }
    }
    return result;
}

//# sourceMappingURL=step.js.map